package com.bdzl.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * HealthPlan entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "health_plan", catalog = "bdzl")
public class HealthPlan  {

	// Fields

	private Integer id;
	private Health health;//医疗ID
	private String name;//名称：计划一。。
	private String yiliao;//医疗机构
	private Integer zhuyuane;//住院年限额
	private Integer baoe;//床位费日限额
	private Integer outpatient;//门诊年限额

	// Constructors

	/** default constructor */
	public HealthPlan() {
	}

	/** full constructor */
	public HealthPlan(Health health, String name, String yiliao,
			Integer zhuyuane, Integer baoe, Integer outpatient) {
		this.health = health;
		this.name = name;
		this.yiliao = yiliao;
		this.zhuyuane = zhuyuane;
		this.baoe = baoe;
		this.outpatient = outpatient;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "health_id")
	public Health getHealth() {
		return this.health;
	}

	public void setHealth(Health health) {
		this.health = health;
	}

	@Column(name = "name")
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "yiliao")
	public String getYiliao() {
		return this.yiliao;
	}

	public void setYiliao(String yiliao) {
		this.yiliao = yiliao;
	}

	@Column(name = "zhuyuane")
	public Integer getZhuyuane() {
		return this.zhuyuane;
	}

	public void setZhuyuane(Integer zhuyuane) {
		this.zhuyuane = zhuyuane;
	}

	@Column(name = "baoe")
	public Integer getBaoe() {
		return this.baoe;
	}

	public void setBaoe(Integer baoe) {
		this.baoe = baoe;
	}

	@Column(name = "outpatient")
	public Integer getOutpatient() {
		return this.outpatient;
	}

	public void setOutpatient(Integer outpatient) {
		this.outpatient = outpatient;
	}

}